package eventStrategies.physicalModel;

import model.IPhysicalDataModel;
import eventManager.AppEvent;
import eventStrategies.IEventResponse;
import events.ECodeEventList;
import events.physicalModel.RemoveNameEvent;

public class RemoveNameStrategy extends IEventResponse {

	private IPhysicalDataModel physModel;
	
	public RemoveNameStrategy(IPhysicalDataModel physModel) {
		super(ECodeEventList.REMOVE_NAME);		
		this.physModel = physModel;
	}

	@Override
	public void execute(AppEvent event) {
		RemoveNameEvent fullEvent = (RemoveNameEvent) event;
		physModel.removeName(fullEvent.name);		
	}

}
